package top.wuyang.trywork.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_cpu")
public class TbCpu implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    // 主键标识
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String cpu;
    private String manufacturer;
    private String info;
    private Integer cores;
    private Integer threads;
    private String frequency;
    private String maxFrequency;

    // 默认字段，不允许插入和修改(数据库语句中有default字段的)
    // 有默认值，不想填写就用这个注解标注
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private Date releaseDate;





}
